/**  
* @Title: ActivityServiceImpl.java
* @Package com.house.service.impl.company
* @version V1.0  
*/ 
package com.hjb.service.impl.company;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hjb.service.company.ActivityService;
import com.hjb.service.domain.Activity;
import com.hjb.service.domain.RentOrder;
import com.hjb.service.mapper.ActivityMapper;
import com.hjb.service.mapper.RentOrderMapper;

/**
* @ClassName: ActivityServiceImpl
* @Description: TODO(这里用一句话描述这个类的作用)
* @author <a href="mailto:125671254@qq.com">Pan Xinwen</a>
* @date 2017年5月13日 下午6:15:38
*/
@Service
public class ActivityServiceImpl implements ActivityService {
	@Autowired
	private ActivityMapper activityMapper;
	@Autowired
	private  RentOrderMapper rentOrderMapper;
	
	/* (non-Javadoc)
	 * @see com.house.service.company.ActivityService#getActivityMsg()
	 */
	@Override
	public List<Activity> getActivityMsg() {
		// TODO Auto-generated method stub
		return activityMapper.selectAll();
	}

	@Override
	public List<RentOrder> getUserOrder(String userId) {
		
		return null;
	}

	@Override
	public List<Map<String,Object>> getUserOrderForOneYearAndMore(String userId) {
		List<Map<String,Object>> list = rentOrderMapper.getUserOrderForOneYearAndMore(userId);
		return list;
	}

	@Override
	public List<Map<String, Object>> getAllRecommend(String userId) {
		
		return rentOrderMapper.getAllRecommend(userId);
	}

}
